NXP Semiconductors /LPC800 /USART0 /CFG

Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text

Interpret as CFG

31 2827 2423 2019 1615 1211 87 43 0 0 0 0 0 0 0 0 00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 (DISABLED_THE_USART_)ENABLE 0 (RESERVED)RESERVED 0 (7_BIT_DATA_LENGTH_)DATALEN 0 (NO_PARITY_)PARITYSEL 0 (1_STOP_BIT_)STOPLEN 0 (RESERVED)RESERVED 0 (RESERVED)RESERVED 0 (NO_FLOW_CONTROL_THE)CTSEN 0 (RESERVED)RESERVED 0 (ASYNCHRONOUS_MODE_IS)SYNCEN 0 (FALLING_EDGE_UN_RXD)CLKPOL 0 (RESERVED)RESERVED 0 (SLAVE_WHEN_SYNCHRON)SYNCMST 0 (NORMAL_OPERATION_)LOOP 0 (RESERVED)RESERVED

PARITYSEL=NO_PARITY_, LOOP=NORMAL_OPERATION_, CTSEN=NO_FLOW_CONTROL_THE, CLKPOL=FALLING_EDGE_UN_RXD, DATALEN=7_BIT_DATA_LENGTH_, STOPLEN=1_STOP_BIT_, SYNCMST=SLAVE_WHEN_SYNCHRON, SYNCEN=ASYNCHRONOUS_MODE_IS, ENABLE=DISABLED_THE_USART_

Description

USART Configuration register. Basic USART configuration settings that typically are not changed during operation.

Fields

ENABLE

USART Enable.

0 (DISABLED_THE_USART_): Disabled. The USART is disabled and the internal state machine and counters are reset. While Enable = 0, all USART interrupts are disabled. When Enable is set again, CFG and most other control bits remain unchanged. For instance, when re-enabled, the USART will immediately generate a TxRdy interrupt if enabled because the transmitter has been reset and is therefore available.

1 (ENABLED_THE_USART_I): Enabled. The USART is enabled for operation.

RESERVED

Reserved. Read value is undefined, only zero should be written.

DATALEN

Selects the data size for the USART.

0 (7_BIT_DATA_LENGTH_): 7 bit Data length.

1 (8_BIT_DATA_LENGTH_): 8 bit Data length.

2 (9_BIT_DATA_LENGTH_T): 9 bit data length. The 9th bit is commonly used for addressing in multidrop mode. See the ADDRDET bit in the CTRL register.

3 (RESERVED_): Reserved.

PARITYSEL

Selects what type of parity is used by the USART.

0 (NO_PARITY_): No parity.

1 (RESERVED_): Reserved.

2 (EVEN_PARITY_ADDS_A_): Even parity. Adds a bit to each character such that the number of 1s in a transmitted character is even, and the number of 1s in a received character is expected to be even.

3 (ODD_PARITY_ADDS_A_B): Odd parity. Adds a bit to each character such that the number of 1s in a transmitted character is odd, and the number of 1s in a received character is expected to be odd.

STOPLEN

Number of stop bits appended to transmitted data. Only a single stop bit is required for received data.

0 (1_STOP_BIT_): 1 stop bit.

1 (2_STOP_BITS_THIS_SE): 2 stop bits. This setting should only be used for asynchronous communication.

RESERVED

Reserved. Only write 0 to this bit.

RESERVED

Reserved. Read value is undefined, only zero should be written.

CTSEN

CTS Enable. Determines whether CTS is used for flow control. CTS can be from the input pin, or from the USART’s own RTS if loopback mode is enabled. See Section 16.7.3 for more information.

0 (NO_FLOW_CONTROL_THE): No flow control. The transmitter does not receive any automatic flow control signal.

1 (FLOW_CONTROL_ENABLED): Flow control enabled. The transmitter uses external or internal CTS for flow control purposes.

RESERVED

Reserved. Read value is undefined, only zero should be written.

SYNCEN

Selects synchronous or asynchronous operation.

0 (ASYNCHRONOUS_MODE_IS): Asynchronous mode is selected.

1 (SYNCHRONOUS_MODE_IS_): Synchronous mode is selected.

CLKPOL

Selects the clock polarity and sampling edge of received data in synchronous mode.

0 (FALLING_EDGE_UN_RXD): Falling edge. Un_RXD is sampled on the falling edge of SCLK.

1 (RISING_EDGE_UN_RXD_): Rising edge. Un_RXD is sampled on the rising edge of SCLK.

RESERVED

Reserved. Read value is undefined, only zero should be written.

SYNCMST

Synchronous mode Master select.

0 (SLAVE_WHEN_SYNCHRON): Slave. When synchronous mode is enabled, the USART is a slave.

1 (MASTER_WHEN_SYNCHRO): Master. When synchronous mode is enabled, the USART is a master. In asynchronous mode, the baud rate clock will be output on SCLK if it is connected to a pin.

LOOP

Selects data loopback mode.

0 (NORMAL_OPERATION_): Normal operation.

1 (LOOPBACK_MODE_THIS_): Loopback mode. This provides a mechanism to perform diagnostic loopback testing for USART data. Serial data from the transmitter (Un_TXD) is connected internally to serial input of the receive (Un_RXD). Un_TXD and Un_RTS activity will also appear on external pins if these functions are configured to appear on device pins. The receiver RTS signal is also looped back to CTS and performs flow control if enabled by CTSEN.

RESERVED

Reserved. Read value is undefined, only zero should be written.

Links

()